<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-jiugongge-edit" th:object="${jiugongge}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动名称：</label>
				<div class="col-sm-8">
					<input id="title" name="title" th:field="*{title}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动描述：</label>
				<div class="col-sm-8">
					<input id="description" name="description" th:field="*{description}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">开始时间：</label>
				<div class="col-sm-8">
					<input id="starttime" name="starttime" th:field="*{starttime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">结束时间：</label>
				<div class="col-sm-8">
					<input id="endtime" name="endtime" th:field="*{endtime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">背景图：</label>
				<div class="col-sm-8">
					<input id="banner" name="banner" th:field="*{banner}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">抽奖次数：</label>
				<div class="col-sm-8">
					<input id="count" name="count" th:field="*{count}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">入口地址：</label>
				<div class="col-sm-8">
					<input id="hdurl" name="hdurl" th:field="*{hdurl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">短链接：</label>
				<div class="col-sm-8">
					<input id="shortUrl" name="shortUrl" th:field="*{shortUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否关注可参加(0：否，1：是)：</label>
				<div class="col-sm-8">
					<input id="foucsUserCanJoin" name="foucsUserCanJoin" th:field="*{foucsUserCanJoin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否绑定手机可参加（0：否，1：是）：</label>
				<div class="col-sm-8">
					<input id="bindingMobileCanJoin" name="bindingMobileCanJoin" th:field="*{bindingMobileCanJoin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">每日抽奖次数：</label>
				<div class="col-sm-8">
					<input id="numPerDay" name="numPerDay" th:field="*{numPerDay}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否中奖可参与 0：中奖可继续参与 1:中奖不可参与：</label>
				<div class="col-sm-8">
					<input id="prizeStatus" name="prizeStatus" th:field="*{prizeStatus}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">参与总人数：</label>
				<div class="col-sm-8">
					<input id="joinNumLimit" name="joinNumLimit" th:field="*{joinNumLimit}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公众号原始id：</label>
				<div class="col-sm-8">
					<input id="jwid" name="jwid" th:field="*{jwid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动编码：</label>
				<div class="col-sm-8">
					<input id="projectCode" name="projectCode" th:field="*{projectCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "jiugongge/jiugongge";
		$("#form-jiugongge-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-jiugongge-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
